package com.ch07.service.impl;

import com.ch07.service.Payment;
import com.ch07.container.Component;

import java.math.BigDecimal;

/**
 * @ClassName AliPay
 * @Description 支付宝支付
 * @Author Kx
 * @Date 2025/4/17 10:44
 * @Version 1.0
 */
@Component("aliPay")
public class AliPay implements Payment {
    @Override
    public void pay(BigDecimal pay) {
        System.out.println("使用支付宝支付" + pay + "元");
    }
}
